<template>
  <div>
    这是父组件 {{ msg }} <br />
    传来的值: {{ msg1 }}
    <hr />
    <Son :data="data" @fu="fu"></Son>
  </div>
</template>

<script setup>
import Son from "@/components/SonCom";
import { ref } from "vue";
let msg = ref("父组件的值");
let msg1 = ref("");
let data = ref("111");
let fu = (val) => (msg1.value = val);
</script>
